home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
internet
/
irc_i_dodatki
/
kuang
/
kuangeleven28.lha
/
Rexx
/
handleflood.amirx
< prev
next >
Wrap
Text File
|
1997-03-09
|
2KB
|
50 lines
/* K¹¹ 2.8 HandleFlood
* Requires AmIRC 1.33!
*/
options results
parse arg ':'nick'!'user'@'host' 'type' 'channel .
user=strip(user,'L','~')
if getclip('st_lastig')==host then exit
else setclip('st_lastig',host)
'SAY /IGNORE *!*@'host 'PRIV CTCP'
"getservername"
s=upper(result)
s=pos('UNDERNET',s)+pos('GALAXYNET',s)+pos('DAL.NET',s)
if s~=0 then 'raw silence +*!*@'host
m=getclip('sc_floodmsg')
type=upper(type) 'flood'
if left(channel,1)='#' then do
hs=user'@'host
"GETMYNICK"
mynick=result
"GETUSERS CHANNEL" channel
us=result
if getclip('sc_prot')='ON'&find(us,'@'mynick)~==0&chanpass()&gethost(mynick)~=hs then do
cn=0;nx=''
'RAW MODE' channel '+n-o+b' nick '*!*@'host
do i=1 to words(us)
nk=strip(word(us,i),'L','@+')
if gethost(nk)=hs then do
cn=cn+1
nx=nx nk
'RAW KICK' channel nk ':'m
end
end
if nx~='' then cecho(cn 'clones flooding' channel ':'nx)
end
type='Channel' type
end
if m~='' then 'RAW NOTICE' nick ':'m
i=getclip('sc_ig_count')
nick=x2c(2)||nick||x2c(2) '[' x2c(2)||host||x2c(2) ']'
cecho(type 'detected from' nick'. Ignoring for' x2c(2)||i||x2c(2) 'minute(s)')
delay(i*3000)
'SAY /unignore *!*@'host
if s~=0 then 'raw silence -*!*@'host
if getclip('st_lastig')=host then setclip('st_lastig')
cecho('Ignore on' nick 'timed-out')
exit
cecho:;"ECHO P="d2c(27)"b«FloodProt» C=2" arg(1)'.';return 0
gethost:;"USERHOST" arg(1);return result
chanpass:;achan=getclip('sc_autochannels');if achan=='ALL' then return 1;if find(achan,upper(channel))~==0 then return 1;return 0